<div style="width: 700px;">

<h2>How to use the GCalApp API</h2>
<p>Using the API is very simple.  There are two basic methods, getUpcomingWeeklyEventSchedule and getRawEventData.  
You can get data returned as either XML or JSON, the choice is yours.  XML is returned
by default.<br /><br />To return JSON, specify the json as the 'format' parameter to the end of your request (http://oitdesign.ncsu.edu/sites/gcalapp/feed/?method=getUpcomingWeeklyEventSchedule&subCalendarId=your-calendar-id-here@group.calendar.google.com&format=json
</p>

<h2>Methods and Parameters</h2>

<h3>getUpcomingWeeklyEventSchedule</h3>
<p>
getUpcomingWeeklyEventSchedule requires a google calendar ID only.
</p>

<p>Example:  http://oitdesign.ncsu.edu/sites/gcalapp/feed/?method=getUpcomingWeeklyEventSchedule&subCalendarId=v65nqr0s0r41hv9ct6ga0d45pg@group.calendar.google.com will return the upcoming weekly schedule for the calendar ID specified.</p>


<h3>getRawEventData</h3>
<p>getRawEventData retrieves the Google Calendar XML feed with some parsing for ease of display. If you want more information that what this method provides you should use the direct XML feed from Google, not this app to parse it.</p>

<p>Example:  http://oitdesign.ncsu.edu/sites/gcalapp/feed/?method=getRawEventData&subCalendarId=hv0ir2mdod53u8q24f8hqclmo8@group.calendar.google.com will retrieve the Event Title, Date in yyyy-mm-dd format, the day of the week, start and end times as unix timestamps, and the location (where) field from the event entry at Google.</p>


</div>